package com.waypolice.manager.service.impl;

import com.waypolice.common.pojo.DestroyCommonResult;
import com.waypolice.common.pojo.TaotaoResult;
import com.waypolice.manager.service.ArcDestroyArchiveService;
import com.waypolice.manager.service.ArcDestroyService;
import com.waypolice.mapper.CmsAppraisalMapper;
import com.waypolice.mapper.CmsDestroyArchiveMapper;
import com.waypolice.mapper.CmsDestroyMapper;
import com.waypolice.mapper.handwriting.CmsDestroyMapperSon;
import com.waypolice.pojo.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 档案著录实现类
 * @author zry
 *
 */
@Service
public class ArcDestroyArchiveServiceImpl implements ArcDestroyArchiveService{
    @Autowired
    private CmsDestroyArchiveMapper cmsDestroyArchiveMapper;

    @Override
    public List<CmsDestroyArchive> selectDesArcByDesId(String desId) {
        CmsDestroyArchiveExample cmsDestroyArchiveExample = new CmsDestroyArchiveExample();
        CmsDestroyArchiveExample.Criteria criteria = cmsDestroyArchiveExample.createCriteria();
        criteria.andDmDesidEqualTo(Integer.valueOf(desId));
        List<CmsDestroyArchive> cmsDestroyArchives = cmsDestroyArchiveMapper.selectByExample(cmsDestroyArchiveExample);
        return cmsDestroyArchives;
    }
}
